package com.briup.bookstore.common.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 实体类 - 图书分类
 * @author YuYan
 * @date 2023-12-26 20:19:51
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString
public class Category {
    private Integer id;
    private String name;
    private String description;
    private Integer parentId;

    private List<Category> children;
}
